package com.java.second_goods.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 商品图片对象 tb_product_image
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tb_goods_image")
public class GoodsImage extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 图片ID */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /** 商品ID */
    private Integer goodsId;

    /** 图片URL */
    private String imageUrl;

    /** 图片排序 */
    private Integer sortOrder;

    /** 是否为主图：1-是，0-否 */
    private Integer isMain;

    /** 状态：1-正常，0-删除 */
    private Integer status;
}